package com.ywgt.service;

import com.github.pagehelper.Page;
import com.ywgt.pojo.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 优惠券信息及规则表 服务类
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
public interface CouponService extends IService<Coupon> {

    Page<Coupon> getCoupons(String name, Integer type, Integer status, int page, int limit, String sort, String order);

    List<Coupon> queryAvailableList(Integer userId, int offset, int limit);
}
